/**
 * Created by yananliu on 2017/12/15.
 */
import * as React from 'react';
import {ProductVO} from "../../vo/ProductVO";

require('./productItemComponent.scss');

export interface Props {
    theme: string;
    value : ProductVO;
}

export class ProductItemComponent extends React.Component<Props>{

    render(){

        return <div className="c-pi">
            <div className="img-wrap">
                <img src={this.props.value.littlepictureurl} />
            </div>
            <div className="title">{this.props.value.name}</div>
            <div className="price">￥<strong>{this.props.value.price}</strong></div>
        </div>

    }

}
